@model GamesPlayModel

@{
    var player1Active = Model.Game.GameState.ActivePlayer == Model.Game.Player1;
    var player2Active = !player1Active;
}
<div class="players @(Model.IsPlayersTurn ? "my-turn" : "their-turn")">
    <div class="inner">
        <h3>Players</h3>
        <div class="body">
            <ul>
                <li@(player1Active ? " class=\"active\"" : "" )>@Model.Game.Player1.UserName@(player1Active ? " &lt;- turn" : "")</li>
                <li@(player2Active ? " class=\"active\"" : "" )>@Model.Game.Player2.UserName@(player2Active ? " &lt;- turn" : "")</li>
            </ul>
        </div>
    </div>
</div>